Cocktail Help Reference
Factory Property
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > UnitOfWork<T> Class : Factory Property



Glossary Item Box

The factory to create new entity instances.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Factory As IFactory(Of T)
Visual Basic (Usage)Copy Code
Dim instance As UnitOfWork(Of T)
Dim value As IFactory(Of T)
 
value = instance.Factory
C# 
public IFactory<T> Factory {get;}
C++/CLI 
public:
property IFactory<T^>^ Factory {
   IFactory<T^>^ get();
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.